Parser=parser
DUG=debug
HTTP_SERVER=http_server
cpp=g++

.PHONY:all
all:$(Parser) $(DUG) $(HTTP_SERVER)

$(Parser):parser.cpp
	$(cpp) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11
$(DUG):debug.cpp
	$(cpp) -o $@ $^ -ljsoncpp -std=c++11
$(HTTP_SERVER):http_server.cpp 
	$(cpp) -o $@ $^ -ljsoncpp -lpthread -std=c++11
.PHONY:clean
clean:
	rm -f $(Parser) $(DUG) $(HTTP_SERVER)